import { Directive,TemplateRef,ViewContainerRef,Input } from '@angular/core';

@Directive({
  selector: '[appMytlel]'
})
export class MytlelDirective {

  constructor(private _el:TemplateRef<any>,private _vcr:ViewContainerRef) {
  }
  @Input() set appMytlel(bool:boolean){
  	if(bool){
  		this._vcr.createEmbeddedView(this._el);
  	}else{
  		this._vcr.clear();
  	}
  }


}
